package com.netty.pro.netty.nio;

import java.nio.ByteBuffer;

/**
 * @author xuzn
 * @ClassName: BufferPutGet
 * @ProjectName echo-project
 * @date 2020/3/5/11:38
 */
public class BufferPutGet {
  public static void main(String[] args) {
    ByteBuffer byteBuffer = ByteBuffer.allocate(1024);
    byteBuffer.putShort((short) 4);
    byteBuffer.flip();
    System.out.println(byteBuffer.getLong());
  }
}
